-
Notifications
You must be signed in to change notification settings - Fork 187
Add all missing tests to suite, mark abstract tests as such #2543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Note that this PR has two commits - I added a formatting/sorting commit before adding the missing tests. The substantial part of this PR is 40a7de0 |
Test Results 118 files ± 0 118 suites ±0 10m 12s ⏱️ -4s For more details on these failures, see this check. Results for commit 5f08af7. ± Comparison against base commit 810cbcc. ♻️ This comment has been updated with latest results. |
91fa60f to
3835266
Compare
|
I fixed a couple of the bitrotten tests. But Test_org_eclipse_swt_widgets_CoolItem is more complicated (to me) because it is about layouts and computing sizes. I am unsure whether my platform is the best one to work on that. |
3835266 to
aa8dc00
Compare
|
Reading the test output it look like most of the test failures are the KeyEvent issue highlighted in #2516 However the newly enabled test shows a problem on mac as Interestingly the same test on TableColumn seems to work fine. So perhaps some code has been fixed on macos for TableColumn but not TreeColumn which I would have thought would be very similar code. |
...JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_BidiSegmentListener.java
Show resolved
Hide resolved
...s/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledTextContent.java
Outdated
Show resolved
Hide resolved
Also formats them so that they can be automatically formatted easily in the future with JDT Formatter by forcing line breaks with `//` The [AnyEdit Tools](https://marketplace.eclipse.org/content/anyedit-tools) can be used to sort the list in the future. This is being done to make it easier to identify if tests are missing from the lists.
AllWidgetTests was missing a bunch of tests, some of them seem not very consequential (simple listener tests such as for example [Test_org_eclipse_swt_custom_VerifyKeyListener](https://github.com/eclipse-platform/eclipse.platform.swt/blob/d5dc66178647fa40b14165a7b54bc3be8e013174/tests/org.eclipse.swt.tests/JUnit%20Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_VerifyKeyListener.java) But other ones seem to test important functionality and are rather more substantial, such as [Test_org_eclipse_swt_widgets_TreeColumn](https://github.com/eclipse-platform/eclipse.platform.swt/blob/d5dc66178647fa40b14165a7b54bc3be8e013174/tests/org.eclipse.swt.tests/JUnit%20Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TreeColumn.java) There are a few test classes which are super classes of other test classes and exist to match all the SWT classes. These have been marked as abstract so that it is obvious why they are not included. If you had try to run them they would have mostly failed. The secondary advantage of explicitly marking them abstract is that JDT won't run them as a test from within Eclipse IDE. There are three test classes that don't pass, I have added them to the list commented out for now, but if they are easy enough to resolve I will enable them too. Fixes #2542
This test had bitrotten significantly since it was written a long time ago. This commit fixes the behaviour by making test implementation of StyledTextContent behave reasonably so that other StyledText operations can complete successfully.
Test_org_eclipse_swt_widgets_TreeColumn had been missing from the SWT test suite since the test was created. The test_getWidth fails on macOS so it has been disabled. It is unknown how long it has been failing for.
6595104 to
5f08af7
Compare
akurtakov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Failing windows tests are tracked in #2516 |
AllWidgetTests was missing a bunch of tests, some of them seem not
very consequential (simple listener tests such as for example
Test_org_eclipse_swt_custom_VerifyKeyListener
But other ones seem to test important functionality and are rather
more substantial, such as Test_org_eclipse_swt_widgets_TreeColumn
There are a few test classes which are super classes of other test classes
and exist to match all the SWT classes. These have been marked as abstract
so that it is obvious why they are not included. If you had try to run them
they would have mostly failed. The secondary advantage of explicitly
marking them abstract is that JDT won't run them as a test from within
Eclipse IDE.
There are three test classes that don't pass, I have added them to the
list commented out for now, but if they are easy enough to resolve I
will enable them too.
Fixes #2542